// import request from './request'
import request from './axios'

export const OrderProtectionList = (params) => {
    return request({
        url: '/OrderProtection',
        method: 'get',
        params
    })
}/**
 * 
 * @param {*} id 订单id
 * @param {*} params 传递的参数
 * @returns 
 * 订单维权成功
 */
export const orderProtectionSuccess = (id, params) => {
    return request({
        url: `/OrderProtection/oPSuccess/${id}`,
        method: 'post',
        params
    })
}
/**
 * 
 * @param {*} id 订单id
 * @param {*} params 传递的参数
 * @returns 
 * 订单维权失败
 */
export const orderProtectionFail = (id, params) => {
    return request({
        url: `/OrderProtection/oPFail/${id}`,
        method: 'post',
        params
    })
}